package chinaunicom.user.service;

import chinaunicom.user.mapper.UserMapper;
import chinaunicom.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Liangzy
 * @create 2019-09-07  17:16
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User queryById(Long id) {

        return userMapper.selectByPrimaryKey(id);
    }
}
